import { createApp } from "vue";
import "normalize.css";
import "./style.css";
import App from "./App.vue";
import router from "./router";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import store from "./store";
import "element-plus/dist/index.css";
import "animate.css";
import Cloud from "leancloud-storage";
// 初始化LeanCloud的SDK
Cloud.init({
  appId: "2YNNiQnvnPyOkdbntRcixlTr-gzGzoHsz",
  appKey: "SO6WYaO2SRHMRiIOdEsdwUok",
  serverURL: "https://2ynniqnv.lc-cn-n1-shared.com",
});

store.commit("user/localInfoMut"); //触发提取本地存储
store.commit("bread/initTabMut"); //初始化快捷菜单
let app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component); //全局注册图标组件
  // app.component('Picture',Picture)
}
app.use(router);
app.use(store);
app.mount("#app");
